package com.starlinkdt.proxy.thirdApi;

import com.github.lianjiatech.retrofit.spring.boot.core.RetrofitClient;
import com.github.lianjiatech.retrofit.spring.boot.retry.Retry;
import com.starlinkdt.proxy.annotation.CallbackSign;
import com.starlinkdt.proxy.pojo.CallbackRespDto;
import org.springframework.stereotype.Repository;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;

import java.util.Map;

import static com.starlinkdt.common.constant.DeductionConstants.DEFAULT_URL;

/**
 * @author system
 */
@Retry
@Repository
@CallbackSign
@RetrofitClient(baseUrl = DEFAULT_URL)
public interface CallbackReqApi {

    /**
     * 数据请求
     *
     * @return CallbackRespDto
     */
    @POST("{callback_req_uri}")
    CallbackRespDto<CallbackRespDto> deductionResultCallback(@Path("callback_req_uri") String callbackReqUri, @Body Map<String, Object> params);

}
